package com.ttbj.salesman.bean.po;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class SalesmanExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public SalesmanExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andSalesmanIdIsNull() {
            addCriterion("salesman_id is null");
            return (Criteria) this;
        }

        public Criteria andSalesmanIdIsNotNull() {
            addCriterion("salesman_id is not null");
            return (Criteria) this;
        }

        public Criteria andSalesmanIdEqualTo(Long value) {
            addCriterion("salesman_id =", value, "salesmanId");
            return (Criteria) this;
        }

        public Criteria andSalesmanIdNotEqualTo(Long value) {
            addCriterion("salesman_id <>", value, "salesmanId");
            return (Criteria) this;
        }

        public Criteria andSalesmanIdGreaterThan(Long value) {
            addCriterion("salesman_id >", value, "salesmanId");
            return (Criteria) this;
        }

        public Criteria andSalesmanIdGreaterThanOrEqualTo(Long value) {
            addCriterion("salesman_id >=", value, "salesmanId");
            return (Criteria) this;
        }

        public Criteria andSalesmanIdLessThan(Long value) {
            addCriterion("salesman_id <", value, "salesmanId");
            return (Criteria) this;
        }

        public Criteria andSalesmanIdLessThanOrEqualTo(Long value) {
            addCriterion("salesman_id <=", value, "salesmanId");
            return (Criteria) this;
        }

        public Criteria andSalesmanIdIn(List<Long> values) {
            addCriterion("salesman_id in", values, "salesmanId");
            return (Criteria) this;
        }

        public Criteria andSalesmanIdNotIn(List<Long> values) {
            addCriterion("salesman_id not in", values, "salesmanId");
            return (Criteria) this;
        }

        public Criteria andSalesmanIdBetween(Long value1, Long value2) {
            addCriterion("salesman_id between", value1, value2, "salesmanId");
            return (Criteria) this;
        }

        public Criteria andSalesmanIdNotBetween(Long value1, Long value2) {
            addCriterion("salesman_id not between", value1, value2, "salesmanId");
            return (Criteria) this;
        }

        public Criteria andSalesmanNumIsNull() {
            addCriterion("salesman_num is null");
            return (Criteria) this;
        }

        public Criteria andSalesmanNumIsNotNull() {
            addCriterion("salesman_num is not null");
            return (Criteria) this;
        }

        public Criteria andSalesmanNumEqualTo(String value) {
            addCriterion("salesman_num =", value, "salesmanNum");
            return (Criteria) this;
        }

        public Criteria andSalesmanNumNotEqualTo(String value) {
            addCriterion("salesman_num <>", value, "salesmanNum");
            return (Criteria) this;
        }

        public Criteria andSalesmanNumGreaterThan(String value) {
            addCriterion("salesman_num >", value, "salesmanNum");
            return (Criteria) this;
        }

        public Criteria andSalesmanNumGreaterThanOrEqualTo(String value) {
            addCriterion("salesman_num >=", value, "salesmanNum");
            return (Criteria) this;
        }

        public Criteria andSalesmanNumLessThan(String value) {
            addCriterion("salesman_num <", value, "salesmanNum");
            return (Criteria) this;
        }

        public Criteria andSalesmanNumLessThanOrEqualTo(String value) {
            addCriterion("salesman_num <=", value, "salesmanNum");
            return (Criteria) this;
        }

        public Criteria andSalesmanNumLike(String value) {
            addCriterion("salesman_num like", value, "salesmanNum");
            return (Criteria) this;
        }

        public Criteria andSalesmanNumNotLike(String value) {
            addCriterion("salesman_num not like", value, "salesmanNum");
            return (Criteria) this;
        }

        public Criteria andSalesmanNumIn(List<String> values) {
            addCriterion("salesman_num in", values, "salesmanNum");
            return (Criteria) this;
        }

        public Criteria andSalesmanNumNotIn(List<String> values) {
            addCriterion("salesman_num not in", values, "salesmanNum");
            return (Criteria) this;
        }

        public Criteria andSalesmanNumBetween(String value1, String value2) {
            addCriterion("salesman_num between", value1, value2, "salesmanNum");
            return (Criteria) this;
        }

        public Criteria andSalesmanNumNotBetween(String value1, String value2) {
            addCriterion("salesman_num not between", value1, value2, "salesmanNum");
            return (Criteria) this;
        }

        public Criteria andSalesmanNameIsNull() {
            addCriterion("salesman_name is null");
            return (Criteria) this;
        }

        public Criteria andSalesmanNameIsNotNull() {
            addCriterion("salesman_name is not null");
            return (Criteria) this;
        }

        public Criteria andSalesmanNameEqualTo(String value) {
            addCriterion("salesman_name =", value, "salesmanName");
            return (Criteria) this;
        }

        public Criteria andSalesmanNameNotEqualTo(String value) {
            addCriterion("salesman_name <>", value, "salesmanName");
            return (Criteria) this;
        }

        public Criteria andSalesmanNameGreaterThan(String value) {
            addCriterion("salesman_name >", value, "salesmanName");
            return (Criteria) this;
        }

        public Criteria andSalesmanNameGreaterThanOrEqualTo(String value) {
            addCriterion("salesman_name >=", value, "salesmanName");
            return (Criteria) this;
        }

        public Criteria andSalesmanNameLessThan(String value) {
            addCriterion("salesman_name <", value, "salesmanName");
            return (Criteria) this;
        }

        public Criteria andSalesmanNameLessThanOrEqualTo(String value) {
            addCriterion("salesman_name <=", value, "salesmanName");
            return (Criteria) this;
        }

        public Criteria andSalesmanNameLike(String value) {
            addCriterion("salesman_name like", value, "salesmanName");
            return (Criteria) this;
        }

        public Criteria andSalesmanNameNotLike(String value) {
            addCriterion("salesman_name not like", value, "salesmanName");
            return (Criteria) this;
        }

        public Criteria andSalesmanNameIn(List<String> values) {
            addCriterion("salesman_name in", values, "salesmanName");
            return (Criteria) this;
        }

        public Criteria andSalesmanNameNotIn(List<String> values) {
            addCriterion("salesman_name not in", values, "salesmanName");
            return (Criteria) this;
        }

        public Criteria andSalesmanNameBetween(String value1, String value2) {
            addCriterion("salesman_name between", value1, value2, "salesmanName");
            return (Criteria) this;
        }

        public Criteria andSalesmanNameNotBetween(String value1, String value2) {
            addCriterion("salesman_name not between", value1, value2, "salesmanName");
            return (Criteria) this;
        }

        public Criteria andSalesmanPicIsNull() {
            addCriterion("salesman_pic is null");
            return (Criteria) this;
        }

        public Criteria andSalesmanPicIsNotNull() {
            addCriterion("salesman_pic is not null");
            return (Criteria) this;
        }

        public Criteria andSalesmanPicEqualTo(String value) {
            addCriterion("salesman_pic =", value, "salesmanPic");
            return (Criteria) this;
        }

        public Criteria andSalesmanPicNotEqualTo(String value) {
            addCriterion("salesman_pic <>", value, "salesmanPic");
            return (Criteria) this;
        }

        public Criteria andSalesmanPicGreaterThan(String value) {
            addCriterion("salesman_pic >", value, "salesmanPic");
            return (Criteria) this;
        }

        public Criteria andSalesmanPicGreaterThanOrEqualTo(String value) {
            addCriterion("salesman_pic >=", value, "salesmanPic");
            return (Criteria) this;
        }

        public Criteria andSalesmanPicLessThan(String value) {
            addCriterion("salesman_pic <", value, "salesmanPic");
            return (Criteria) this;
        }

        public Criteria andSalesmanPicLessThanOrEqualTo(String value) {
            addCriterion("salesman_pic <=", value, "salesmanPic");
            return (Criteria) this;
        }

        public Criteria andSalesmanPicLike(String value) {
            addCriterion("salesman_pic like", value, "salesmanPic");
            return (Criteria) this;
        }

        public Criteria andSalesmanPicNotLike(String value) {
            addCriterion("salesman_pic not like", value, "salesmanPic");
            return (Criteria) this;
        }

        public Criteria andSalesmanPicIn(List<String> values) {
            addCriterion("salesman_pic in", values, "salesmanPic");
            return (Criteria) this;
        }

        public Criteria andSalesmanPicNotIn(List<String> values) {
            addCriterion("salesman_pic not in", values, "salesmanPic");
            return (Criteria) this;
        }

        public Criteria andSalesmanPicBetween(String value1, String value2) {
            addCriterion("salesman_pic between", value1, value2, "salesmanPic");
            return (Criteria) this;
        }

        public Criteria andSalesmanPicNotBetween(String value1, String value2) {
            addCriterion("salesman_pic not between", value1, value2, "salesmanPic");
            return (Criteria) this;
        }

        public Criteria andSalesmanGoalIsNull() {
            addCriterion("salesman_goal is null");
            return (Criteria) this;
        }

        public Criteria andSalesmanGoalIsNotNull() {
            addCriterion("salesman_goal is not null");
            return (Criteria) this;
        }

        public Criteria andSalesmanGoalEqualTo(Integer value) {
            addCriterion("salesman_goal =", value, "salesmanGoal");
            return (Criteria) this;
        }

        public Criteria andSalesmanGoalNotEqualTo(Integer value) {
            addCriterion("salesman_goal <>", value, "salesmanGoal");
            return (Criteria) this;
        }

        public Criteria andSalesmanGoalGreaterThan(Integer value) {
            addCriterion("salesman_goal >", value, "salesmanGoal");
            return (Criteria) this;
        }

        public Criteria andSalesmanGoalGreaterThanOrEqualTo(Integer value) {
            addCriterion("salesman_goal >=", value, "salesmanGoal");
            return (Criteria) this;
        }

        public Criteria andSalesmanGoalLessThan(Integer value) {
            addCriterion("salesman_goal <", value, "salesmanGoal");
            return (Criteria) this;
        }

        public Criteria andSalesmanGoalLessThanOrEqualTo(Integer value) {
            addCriterion("salesman_goal <=", value, "salesmanGoal");
            return (Criteria) this;
        }

        public Criteria andSalesmanGoalIn(List<Integer> values) {
            addCriterion("salesman_goal in", values, "salesmanGoal");
            return (Criteria) this;
        }

        public Criteria andSalesmanGoalNotIn(List<Integer> values) {
            addCriterion("salesman_goal not in", values, "salesmanGoal");
            return (Criteria) this;
        }

        public Criteria andSalesmanGoalBetween(Integer value1, Integer value2) {
            addCriterion("salesman_goal between", value1, value2, "salesmanGoal");
            return (Criteria) this;
        }

        public Criteria andSalesmanGoalNotBetween(Integer value1, Integer value2) {
            addCriterion("salesman_goal not between", value1, value2, "salesmanGoal");
            return (Criteria) this;
        }

        public Criteria andSalesmanBonusIsNull() {
            addCriterion("salesman_bonus is null");
            return (Criteria) this;
        }

        public Criteria andSalesmanBonusIsNotNull() {
            addCriterion("salesman_bonus is not null");
            return (Criteria) this;
        }

        public Criteria andSalesmanBonusEqualTo(BigDecimal value) {
            addCriterion("salesman_bonus =", value, "salesmanBonus");
            return (Criteria) this;
        }

        public Criteria andSalesmanBonusNotEqualTo(BigDecimal value) {
            addCriterion("salesman_bonus <>", value, "salesmanBonus");
            return (Criteria) this;
        }

        public Criteria andSalesmanBonusGreaterThan(BigDecimal value) {
            addCriterion("salesman_bonus >", value, "salesmanBonus");
            return (Criteria) this;
        }

        public Criteria andSalesmanBonusGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("salesman_bonus >=", value, "salesmanBonus");
            return (Criteria) this;
        }

        public Criteria andSalesmanBonusLessThan(BigDecimal value) {
            addCriterion("salesman_bonus <", value, "salesmanBonus");
            return (Criteria) this;
        }

        public Criteria andSalesmanBonusLessThanOrEqualTo(BigDecimal value) {
            addCriterion("salesman_bonus <=", value, "salesmanBonus");
            return (Criteria) this;
        }

        public Criteria andSalesmanBonusIn(List<BigDecimal> values) {
            addCriterion("salesman_bonus in", values, "salesmanBonus");
            return (Criteria) this;
        }

        public Criteria andSalesmanBonusNotIn(List<BigDecimal> values) {
            addCriterion("salesman_bonus not in", values, "salesmanBonus");
            return (Criteria) this;
        }

        public Criteria andSalesmanBonusBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("salesman_bonus between", value1, value2, "salesmanBonus");
            return (Criteria) this;
        }

        public Criteria andSalesmanBonusNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("salesman_bonus not between", value1, value2, "salesmanBonus");
            return (Criteria) this;
        }

        public Criteria andSalesmanTypeIsNull() {
            addCriterion("salesman_type is null");
            return (Criteria) this;
        }

        public Criteria andSalesmanTypeIsNotNull() {
            addCriterion("salesman_type is not null");
            return (Criteria) this;
        }

        public Criteria andSalesmanTypeEqualTo(Integer value) {
            addCriterion("salesman_type =", value, "salesmanType");
            return (Criteria) this;
        }

        public Criteria andSalesmanTypeNotEqualTo(Integer value) {
            addCriterion("salesman_type <>", value, "salesmanType");
            return (Criteria) this;
        }

        public Criteria andSalesmanTypeGreaterThan(Integer value) {
            addCriterion("salesman_type >", value, "salesmanType");
            return (Criteria) this;
        }

        public Criteria andSalesmanTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("salesman_type >=", value, "salesmanType");
            return (Criteria) this;
        }

        public Criteria andSalesmanTypeLessThan(Integer value) {
            addCriterion("salesman_type <", value, "salesmanType");
            return (Criteria) this;
        }

        public Criteria andSalesmanTypeLessThanOrEqualTo(Integer value) {
            addCriterion("salesman_type <=", value, "salesmanType");
            return (Criteria) this;
        }

        public Criteria andSalesmanTypeIn(List<Integer> values) {
            addCriterion("salesman_type in", values, "salesmanType");
            return (Criteria) this;
        }

        public Criteria andSalesmanTypeNotIn(List<Integer> values) {
            addCriterion("salesman_type not in", values, "salesmanType");
            return (Criteria) this;
        }

        public Criteria andSalesmanTypeBetween(Integer value1, Integer value2) {
            addCriterion("salesman_type between", value1, value2, "salesmanType");
            return (Criteria) this;
        }

        public Criteria andSalesmanTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("salesman_type not between", value1, value2, "salesmanType");
            return (Criteria) this;
        }

        public Criteria andSalesmanJoinTimeIsNull() {
            addCriterion("salesman_join_time is null");
            return (Criteria) this;
        }

        public Criteria andSalesmanJoinTimeIsNotNull() {
            addCriterion("salesman_join_time is not null");
            return (Criteria) this;
        }

        public Criteria andSalesmanJoinTimeEqualTo(Date value) {
            addCriterion("salesman_join_time =", value, "salesmanJoinTime");
            return (Criteria) this;
        }

        public Criteria andSalesmanJoinTimeNotEqualTo(Date value) {
            addCriterion("salesman_join_time <>", value, "salesmanJoinTime");
            return (Criteria) this;
        }

        public Criteria andSalesmanJoinTimeGreaterThan(Date value) {
            addCriterion("salesman_join_time >", value, "salesmanJoinTime");
            return (Criteria) this;
        }

        public Criteria andSalesmanJoinTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("salesman_join_time >=", value, "salesmanJoinTime");
            return (Criteria) this;
        }

        public Criteria andSalesmanJoinTimeLessThan(Date value) {
            addCriterion("salesman_join_time <", value, "salesmanJoinTime");
            return (Criteria) this;
        }

        public Criteria andSalesmanJoinTimeLessThanOrEqualTo(Date value) {
            addCriterion("salesman_join_time <=", value, "salesmanJoinTime");
            return (Criteria) this;
        }

        public Criteria andSalesmanJoinTimeIn(List<Date> values) {
            addCriterion("salesman_join_time in", values, "salesmanJoinTime");
            return (Criteria) this;
        }

        public Criteria andSalesmanJoinTimeNotIn(List<Date> values) {
            addCriterion("salesman_join_time not in", values, "salesmanJoinTime");
            return (Criteria) this;
        }

        public Criteria andSalesmanJoinTimeBetween(Date value1, Date value2) {
            addCriterion("salesman_join_time between", value1, value2, "salesmanJoinTime");
            return (Criteria) this;
        }

        public Criteria andSalesmanJoinTimeNotBetween(Date value1, Date value2) {
            addCriterion("salesman_join_time not between", value1, value2, "salesmanJoinTime");
            return (Criteria) this;
        }

        public Criteria andSalesmanInsTimeIsNull() {
            addCriterion("salesman_ins_time is null");
            return (Criteria) this;
        }

        public Criteria andSalesmanInsTimeIsNotNull() {
            addCriterion("salesman_ins_time is not null");
            return (Criteria) this;
        }

        public Criteria andSalesmanInsTimeEqualTo(Date value) {
            addCriterion("salesman_ins_time =", value, "salesmanInsTime");
            return (Criteria) this;
        }

        public Criteria andSalesmanInsTimeNotEqualTo(Date value) {
            addCriterion("salesman_ins_time <>", value, "salesmanInsTime");
            return (Criteria) this;
        }

        public Criteria andSalesmanInsTimeGreaterThan(Date value) {
            addCriterion("salesman_ins_time >", value, "salesmanInsTime");
            return (Criteria) this;
        }

        public Criteria andSalesmanInsTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("salesman_ins_time >=", value, "salesmanInsTime");
            return (Criteria) this;
        }

        public Criteria andSalesmanInsTimeLessThan(Date value) {
            addCriterion("salesman_ins_time <", value, "salesmanInsTime");
            return (Criteria) this;
        }

        public Criteria andSalesmanInsTimeLessThanOrEqualTo(Date value) {
            addCriterion("salesman_ins_time <=", value, "salesmanInsTime");
            return (Criteria) this;
        }

        public Criteria andSalesmanInsTimeIn(List<Date> values) {
            addCriterion("salesman_ins_time in", values, "salesmanInsTime");
            return (Criteria) this;
        }

        public Criteria andSalesmanInsTimeNotIn(List<Date> values) {
            addCriterion("salesman_ins_time not in", values, "salesmanInsTime");
            return (Criteria) this;
        }

        public Criteria andSalesmanInsTimeBetween(Date value1, Date value2) {
            addCriterion("salesman_ins_time between", value1, value2, "salesmanInsTime");
            return (Criteria) this;
        }

        public Criteria andSalesmanInsTimeNotBetween(Date value1, Date value2) {
            addCriterion("salesman_ins_time not between", value1, value2, "salesmanInsTime");
            return (Criteria) this;
        }

        public Criteria andSalesmanUpdateTimeIsNull() {
            addCriterion("salesman_update_time is null");
            return (Criteria) this;
        }

        public Criteria andSalesmanUpdateTimeIsNotNull() {
            addCriterion("salesman_update_time is not null");
            return (Criteria) this;
        }

        public Criteria andSalesmanUpdateTimeEqualTo(Date value) {
            addCriterion("salesman_update_time =", value, "salesmanUpdateTime");
            return (Criteria) this;
        }

        public Criteria andSalesmanUpdateTimeNotEqualTo(Date value) {
            addCriterion("salesman_update_time <>", value, "salesmanUpdateTime");
            return (Criteria) this;
        }

        public Criteria andSalesmanUpdateTimeGreaterThan(Date value) {
            addCriterion("salesman_update_time >", value, "salesmanUpdateTime");
            return (Criteria) this;
        }

        public Criteria andSalesmanUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("salesman_update_time >=", value, "salesmanUpdateTime");
            return (Criteria) this;
        }

        public Criteria andSalesmanUpdateTimeLessThan(Date value) {
            addCriterion("salesman_update_time <", value, "salesmanUpdateTime");
            return (Criteria) this;
        }

        public Criteria andSalesmanUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("salesman_update_time <=", value, "salesmanUpdateTime");
            return (Criteria) this;
        }

        public Criteria andSalesmanUpdateTimeIn(List<Date> values) {
            addCriterion("salesman_update_time in", values, "salesmanUpdateTime");
            return (Criteria) this;
        }

        public Criteria andSalesmanUpdateTimeNotIn(List<Date> values) {
            addCriterion("salesman_update_time not in", values, "salesmanUpdateTime");
            return (Criteria) this;
        }

        public Criteria andSalesmanUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("salesman_update_time between", value1, value2, "salesmanUpdateTime");
            return (Criteria) this;
        }

        public Criteria andSalesmanUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("salesman_update_time not between", value1, value2, "salesmanUpdateTime");
            return (Criteria) this;
        }

        public Criteria andSalesmanIsDeleteIsNull() {
            addCriterion("salesman_is_delete is null");
            return (Criteria) this;
        }

        public Criteria andSalesmanIsDeleteIsNotNull() {
            addCriterion("salesman_is_delete is not null");
            return (Criteria) this;
        }

        public Criteria andSalesmanIsDeleteEqualTo(Integer value) {
            addCriterion("salesman_is_delete =", value, "salesmanIsDelete");
            return (Criteria) this;
        }

        public Criteria andSalesmanIsDeleteNotEqualTo(Integer value) {
            addCriterion("salesman_is_delete <>", value, "salesmanIsDelete");
            return (Criteria) this;
        }

        public Criteria andSalesmanIsDeleteGreaterThan(Integer value) {
            addCriterion("salesman_is_delete >", value, "salesmanIsDelete");
            return (Criteria) this;
        }

        public Criteria andSalesmanIsDeleteGreaterThanOrEqualTo(Integer value) {
            addCriterion("salesman_is_delete >=", value, "salesmanIsDelete");
            return (Criteria) this;
        }

        public Criteria andSalesmanIsDeleteLessThan(Integer value) {
            addCriterion("salesman_is_delete <", value, "salesmanIsDelete");
            return (Criteria) this;
        }

        public Criteria andSalesmanIsDeleteLessThanOrEqualTo(Integer value) {
            addCriterion("salesman_is_delete <=", value, "salesmanIsDelete");
            return (Criteria) this;
        }

        public Criteria andSalesmanIsDeleteIn(List<Integer> values) {
            addCriterion("salesman_is_delete in", values, "salesmanIsDelete");
            return (Criteria) this;
        }

        public Criteria andSalesmanIsDeleteNotIn(List<Integer> values) {
            addCriterion("salesman_is_delete not in", values, "salesmanIsDelete");
            return (Criteria) this;
        }

        public Criteria andSalesmanIsDeleteBetween(Integer value1, Integer value2) {
            addCriterion("salesman_is_delete between", value1, value2, "salesmanIsDelete");
            return (Criteria) this;
        }

        public Criteria andSalesmanIsDeleteNotBetween(Integer value1, Integer value2) {
            addCriterion("salesman_is_delete not between", value1, value2, "salesmanIsDelete");
            return (Criteria) this;
        }

        public Criteria andSalesmanSaltIsNull() {
            addCriterion("salesman_salt is null");
            return (Criteria) this;
        }

        public Criteria andSalesmanSaltIsNotNull() {
            addCriterion("salesman_salt is not null");
            return (Criteria) this;
        }

        public Criteria andSalesmanSaltEqualTo(String value) {
            addCriterion("salesman_salt =", value, "salesmanSalt");
            return (Criteria) this;
        }

        public Criteria andSalesmanSaltNotEqualTo(String value) {
            addCriterion("salesman_salt <>", value, "salesmanSalt");
            return (Criteria) this;
        }

        public Criteria andSalesmanSaltGreaterThan(String value) {
            addCriterion("salesman_salt >", value, "salesmanSalt");
            return (Criteria) this;
        }

        public Criteria andSalesmanSaltGreaterThanOrEqualTo(String value) {
            addCriterion("salesman_salt >=", value, "salesmanSalt");
            return (Criteria) this;
        }

        public Criteria andSalesmanSaltLessThan(String value) {
            addCriterion("salesman_salt <", value, "salesmanSalt");
            return (Criteria) this;
        }

        public Criteria andSalesmanSaltLessThanOrEqualTo(String value) {
            addCriterion("salesman_salt <=", value, "salesmanSalt");
            return (Criteria) this;
        }

        public Criteria andSalesmanSaltLike(String value) {
            addCriterion("salesman_salt like", value, "salesmanSalt");
            return (Criteria) this;
        }

        public Criteria andSalesmanSaltNotLike(String value) {
            addCriterion("salesman_salt not like", value, "salesmanSalt");
            return (Criteria) this;
        }

        public Criteria andSalesmanSaltIn(List<String> values) {
            addCriterion("salesman_salt in", values, "salesmanSalt");
            return (Criteria) this;
        }

        public Criteria andSalesmanSaltNotIn(List<String> values) {
            addCriterion("salesman_salt not in", values, "salesmanSalt");
            return (Criteria) this;
        }

        public Criteria andSalesmanSaltBetween(String value1, String value2) {
            addCriterion("salesman_salt between", value1, value2, "salesmanSalt");
            return (Criteria) this;
        }

        public Criteria andSalesmanSaltNotBetween(String value1, String value2) {
            addCriterion("salesman_salt not between", value1, value2, "salesmanSalt");
            return (Criteria) this;
        }

        public Criteria andSalesmanTokenIsNull() {
            addCriterion("salesman_token is null");
            return (Criteria) this;
        }

        public Criteria andSalesmanTokenIsNotNull() {
            addCriterion("salesman_token is not null");
            return (Criteria) this;
        }

        public Criteria andSalesmanTokenEqualTo(String value) {
            addCriterion("salesman_token =", value, "salesmanToken");
            return (Criteria) this;
        }

        public Criteria andSalesmanTokenNotEqualTo(String value) {
            addCriterion("salesman_token <>", value, "salesmanToken");
            return (Criteria) this;
        }

        public Criteria andSalesmanTokenGreaterThan(String value) {
            addCriterion("salesman_token >", value, "salesmanToken");
            return (Criteria) this;
        }

        public Criteria andSalesmanTokenGreaterThanOrEqualTo(String value) {
            addCriterion("salesman_token >=", value, "salesmanToken");
            return (Criteria) this;
        }

        public Criteria andSalesmanTokenLessThan(String value) {
            addCriterion("salesman_token <", value, "salesmanToken");
            return (Criteria) this;
        }

        public Criteria andSalesmanTokenLessThanOrEqualTo(String value) {
            addCriterion("salesman_token <=", value, "salesmanToken");
            return (Criteria) this;
        }

        public Criteria andSalesmanTokenLike(String value) {
            addCriterion("salesman_token like", value, "salesmanToken");
            return (Criteria) this;
        }

        public Criteria andSalesmanTokenNotLike(String value) {
            addCriterion("salesman_token not like", value, "salesmanToken");
            return (Criteria) this;
        }

        public Criteria andSalesmanTokenIn(List<String> values) {
            addCriterion("salesman_token in", values, "salesmanToken");
            return (Criteria) this;
        }

        public Criteria andSalesmanTokenNotIn(List<String> values) {
            addCriterion("salesman_token not in", values, "salesmanToken");
            return (Criteria) this;
        }

        public Criteria andSalesmanTokenBetween(String value1, String value2) {
            addCriterion("salesman_token between", value1, value2, "salesmanToken");
            return (Criteria) this;
        }

        public Criteria andSalesmanTokenNotBetween(String value1, String value2) {
            addCriterion("salesman_token not between", value1, value2, "salesmanToken");
            return (Criteria) this;
        }

        public Criteria andSalesmanRealNameIsNull() {
            addCriterion("salesman_real_name is null");
            return (Criteria) this;
        }

        public Criteria andSalesmanRealNameIsNotNull() {
            addCriterion("salesman_real_name is not null");
            return (Criteria) this;
        }

        public Criteria andSalesmanRealNameEqualTo(String value) {
            addCriterion("salesman_real_name =", value, "salesmanRealName");
            return (Criteria) this;
        }

        public Criteria andSalesmanRealNameNotEqualTo(String value) {
            addCriterion("salesman_real_name <>", value, "salesmanRealName");
            return (Criteria) this;
        }

        public Criteria andSalesmanRealNameGreaterThan(String value) {
            addCriterion("salesman_real_name >", value, "salesmanRealName");
            return (Criteria) this;
        }

        public Criteria andSalesmanRealNameGreaterThanOrEqualTo(String value) {
            addCriterion("salesman_real_name >=", value, "salesmanRealName");
            return (Criteria) this;
        }

        public Criteria andSalesmanRealNameLessThan(String value) {
            addCriterion("salesman_real_name <", value, "salesmanRealName");
            return (Criteria) this;
        }

        public Criteria andSalesmanRealNameLessThanOrEqualTo(String value) {
            addCriterion("salesman_real_name <=", value, "salesmanRealName");
            return (Criteria) this;
        }

        public Criteria andSalesmanRealNameLike(String value) {
            addCriterion("salesman_real_name like", value, "salesmanRealName");
            return (Criteria) this;
        }

        public Criteria andSalesmanRealNameNotLike(String value) {
            addCriterion("salesman_real_name not like", value, "salesmanRealName");
            return (Criteria) this;
        }

        public Criteria andSalesmanRealNameIn(List<String> values) {
            addCriterion("salesman_real_name in", values, "salesmanRealName");
            return (Criteria) this;
        }

        public Criteria andSalesmanRealNameNotIn(List<String> values) {
            addCriterion("salesman_real_name not in", values, "salesmanRealName");
            return (Criteria) this;
        }

        public Criteria andSalesmanRealNameBetween(String value1, String value2) {
            addCriterion("salesman_real_name between", value1, value2, "salesmanRealName");
            return (Criteria) this;
        }

        public Criteria andSalesmanRealNameNotBetween(String value1, String value2) {
            addCriterion("salesman_real_name not between", value1, value2, "salesmanRealName");
            return (Criteria) this;
        }

        public Criteria andSalesmanPwdIsNull() {
            addCriterion("salesman_pwd is null");
            return (Criteria) this;
        }

        public Criteria andSalesmanPwdIsNotNull() {
            addCriterion("salesman_pwd is not null");
            return (Criteria) this;
        }

        public Criteria andSalesmanPwdEqualTo(String value) {
            addCriterion("salesman_pwd =", value, "salesmanPwd");
            return (Criteria) this;
        }

        public Criteria andSalesmanPwdNotEqualTo(String value) {
            addCriterion("salesman_pwd <>", value, "salesmanPwd");
            return (Criteria) this;
        }

        public Criteria andSalesmanPwdGreaterThan(String value) {
            addCriterion("salesman_pwd >", value, "salesmanPwd");
            return (Criteria) this;
        }

        public Criteria andSalesmanPwdGreaterThanOrEqualTo(String value) {
            addCriterion("salesman_pwd >=", value, "salesmanPwd");
            return (Criteria) this;
        }

        public Criteria andSalesmanPwdLessThan(String value) {
            addCriterion("salesman_pwd <", value, "salesmanPwd");
            return (Criteria) this;
        }

        public Criteria andSalesmanPwdLessThanOrEqualTo(String value) {
            addCriterion("salesman_pwd <=", value, "salesmanPwd");
            return (Criteria) this;
        }

        public Criteria andSalesmanPwdLike(String value) {
            addCriterion("salesman_pwd like", value, "salesmanPwd");
            return (Criteria) this;
        }

        public Criteria andSalesmanPwdNotLike(String value) {
            addCriterion("salesman_pwd not like", value, "salesmanPwd");
            return (Criteria) this;
        }

        public Criteria andSalesmanPwdIn(List<String> values) {
            addCriterion("salesman_pwd in", values, "salesmanPwd");
            return (Criteria) this;
        }

        public Criteria andSalesmanPwdNotIn(List<String> values) {
            addCriterion("salesman_pwd not in", values, "salesmanPwd");
            return (Criteria) this;
        }

        public Criteria andSalesmanPwdBetween(String value1, String value2) {
            addCriterion("salesman_pwd between", value1, value2, "salesmanPwd");
            return (Criteria) this;
        }

        public Criteria andSalesmanPwdNotBetween(String value1, String value2) {
            addCriterion("salesman_pwd not between", value1, value2, "salesmanPwd");
            return (Criteria) this;
        }

        public Criteria andSalesmanRoleIdIsNull() {
            addCriterion("salesman_role_id is null");
            return (Criteria) this;
        }

        public Criteria andSalesmanRoleIdIsNotNull() {
            addCriterion("salesman_role_id is not null");
            return (Criteria) this;
        }

        public Criteria andSalesmanRoleIdEqualTo(Long value) {
            addCriterion("salesman_role_id =", value, "salesmanRoleId");
            return (Criteria) this;
        }

        public Criteria andSalesmanRoleIdNotEqualTo(Long value) {
            addCriterion("salesman_role_id <>", value, "salesmanRoleId");
            return (Criteria) this;
        }

        public Criteria andSalesmanRoleIdGreaterThan(Long value) {
            addCriterion("salesman_role_id >", value, "salesmanRoleId");
            return (Criteria) this;
        }

        public Criteria andSalesmanRoleIdGreaterThanOrEqualTo(Long value) {
            addCriterion("salesman_role_id >=", value, "salesmanRoleId");
            return (Criteria) this;
        }

        public Criteria andSalesmanRoleIdLessThan(Long value) {
            addCriterion("salesman_role_id <", value, "salesmanRoleId");
            return (Criteria) this;
        }

        public Criteria andSalesmanRoleIdLessThanOrEqualTo(Long value) {
            addCriterion("salesman_role_id <=", value, "salesmanRoleId");
            return (Criteria) this;
        }

        public Criteria andSalesmanRoleIdIn(List<Long> values) {
            addCriterion("salesman_role_id in", values, "salesmanRoleId");
            return (Criteria) this;
        }

        public Criteria andSalesmanRoleIdNotIn(List<Long> values) {
            addCriterion("salesman_role_id not in", values, "salesmanRoleId");
            return (Criteria) this;
        }

        public Criteria andSalesmanRoleIdBetween(Long value1, Long value2) {
            addCriterion("salesman_role_id between", value1, value2, "salesmanRoleId");
            return (Criteria) this;
        }

        public Criteria andSalesmanRoleIdNotBetween(Long value1, Long value2) {
            addCriterion("salesman_role_id not between", value1, value2, "salesmanRoleId");
            return (Criteria) this;
        }

        public Criteria andSalesmanRegistIdIsNull() {
            addCriterion("salesman_regist_id is null");
            return (Criteria) this;
        }

        public Criteria andSalesmanRegistIdIsNotNull() {
            addCriterion("salesman_regist_id is not null");
            return (Criteria) this;
        }

        public Criteria andSalesmanRegistIdEqualTo(String value) {
            addCriterion("salesman_regist_id =", value, "salesmanRegistId");
            return (Criteria) this;
        }

        public Criteria andSalesmanRegistIdNotEqualTo(String value) {
            addCriterion("salesman_regist_id <>", value, "salesmanRegistId");
            return (Criteria) this;
        }

        public Criteria andSalesmanRegistIdGreaterThan(String value) {
            addCriterion("salesman_regist_id >", value, "salesmanRegistId");
            return (Criteria) this;
        }

        public Criteria andSalesmanRegistIdGreaterThanOrEqualTo(String value) {
            addCriterion("salesman_regist_id >=", value, "salesmanRegistId");
            return (Criteria) this;
        }

        public Criteria andSalesmanRegistIdLessThan(String value) {
            addCriterion("salesman_regist_id <", value, "salesmanRegistId");
            return (Criteria) this;
        }

        public Criteria andSalesmanRegistIdLessThanOrEqualTo(String value) {
            addCriterion("salesman_regist_id <=", value, "salesmanRegistId");
            return (Criteria) this;
        }

        public Criteria andSalesmanRegistIdLike(String value) {
            addCriterion("salesman_regist_id like", value, "salesmanRegistId");
            return (Criteria) this;
        }

        public Criteria andSalesmanRegistIdNotLike(String value) {
            addCriterion("salesman_regist_id not like", value, "salesmanRegistId");
            return (Criteria) this;
        }

        public Criteria andSalesmanRegistIdIn(List<String> values) {
            addCriterion("salesman_regist_id in", values, "salesmanRegistId");
            return (Criteria) this;
        }

        public Criteria andSalesmanRegistIdNotIn(List<String> values) {
            addCriterion("salesman_regist_id not in", values, "salesmanRegistId");
            return (Criteria) this;
        }

        public Criteria andSalesmanRegistIdBetween(String value1, String value2) {
            addCriterion("salesman_regist_id between", value1, value2, "salesmanRegistId");
            return (Criteria) this;
        }

        public Criteria andSalesmanRegistIdNotBetween(String value1, String value2) {
            addCriterion("salesman_regist_id not between", value1, value2, "salesmanRegistId");
            return (Criteria) this;
        }

        public Criteria andSalesmanPhoneIsNull() {
            addCriterion("salesman_phone is null");
            return (Criteria) this;
        }

        public Criteria andSalesmanPhoneIsNotNull() {
            addCriterion("salesman_phone is not null");
            return (Criteria) this;
        }

        public Criteria andSalesmanPhoneEqualTo(String value) {
            addCriterion("salesman_phone =", value, "salesmanPhone");
            return (Criteria) this;
        }

        public Criteria andSalesmanPhoneNotEqualTo(String value) {
            addCriterion("salesman_phone <>", value, "salesmanPhone");
            return (Criteria) this;
        }

        public Criteria andSalesmanPhoneGreaterThan(String value) {
            addCriterion("salesman_phone >", value, "salesmanPhone");
            return (Criteria) this;
        }

        public Criteria andSalesmanPhoneGreaterThanOrEqualTo(String value) {
            addCriterion("salesman_phone >=", value, "salesmanPhone");
            return (Criteria) this;
        }

        public Criteria andSalesmanPhoneLessThan(String value) {
            addCriterion("salesman_phone <", value, "salesmanPhone");
            return (Criteria) this;
        }

        public Criteria andSalesmanPhoneLessThanOrEqualTo(String value) {
            addCriterion("salesman_phone <=", value, "salesmanPhone");
            return (Criteria) this;
        }

        public Criteria andSalesmanPhoneLike(String value) {
            addCriterion("salesman_phone like", value, "salesmanPhone");
            return (Criteria) this;
        }

        public Criteria andSalesmanPhoneNotLike(String value) {
            addCriterion("salesman_phone not like", value, "salesmanPhone");
            return (Criteria) this;
        }

        public Criteria andSalesmanPhoneIn(List<String> values) {
            addCriterion("salesman_phone in", values, "salesmanPhone");
            return (Criteria) this;
        }

        public Criteria andSalesmanPhoneNotIn(List<String> values) {
            addCriterion("salesman_phone not in", values, "salesmanPhone");
            return (Criteria) this;
        }

        public Criteria andSalesmanPhoneBetween(String value1, String value2) {
            addCriterion("salesman_phone between", value1, value2, "salesmanPhone");
            return (Criteria) this;
        }

        public Criteria andSalesmanPhoneNotBetween(String value1, String value2) {
            addCriterion("salesman_phone not between", value1, value2, "salesmanPhone");
            return (Criteria) this;
        }

        public Criteria andSalesmanAddrIsNull() {
            addCriterion("salesman_addr is null");
            return (Criteria) this;
        }

        public Criteria andSalesmanAddrIsNotNull() {
            addCriterion("salesman_addr is not null");
            return (Criteria) this;
        }

        public Criteria andSalesmanAddrEqualTo(String value) {
            addCriterion("salesman_addr =", value, "salesmanAddr");
            return (Criteria) this;
        }

        public Criteria andSalesmanAddrNotEqualTo(String value) {
            addCriterion("salesman_addr <>", value, "salesmanAddr");
            return (Criteria) this;
        }

        public Criteria andSalesmanAddrGreaterThan(String value) {
            addCriterion("salesman_addr >", value, "salesmanAddr");
            return (Criteria) this;
        }

        public Criteria andSalesmanAddrGreaterThanOrEqualTo(String value) {
            addCriterion("salesman_addr >=", value, "salesmanAddr");
            return (Criteria) this;
        }

        public Criteria andSalesmanAddrLessThan(String value) {
            addCriterion("salesman_addr <", value, "salesmanAddr");
            return (Criteria) this;
        }

        public Criteria andSalesmanAddrLessThanOrEqualTo(String value) {
            addCriterion("salesman_addr <=", value, "salesmanAddr");
            return (Criteria) this;
        }

        public Criteria andSalesmanAddrLike(String value) {
            addCriterion("salesman_addr like", value, "salesmanAddr");
            return (Criteria) this;
        }

        public Criteria andSalesmanAddrNotLike(String value) {
            addCriterion("salesman_addr not like", value, "salesmanAddr");
            return (Criteria) this;
        }

        public Criteria andSalesmanAddrIn(List<String> values) {
            addCriterion("salesman_addr in", values, "salesmanAddr");
            return (Criteria) this;
        }

        public Criteria andSalesmanAddrNotIn(List<String> values) {
            addCriterion("salesman_addr not in", values, "salesmanAddr");
            return (Criteria) this;
        }

        public Criteria andSalesmanAddrBetween(String value1, String value2) {
            addCriterion("salesman_addr between", value1, value2, "salesmanAddr");
            return (Criteria) this;
        }

        public Criteria andSalesmanAddrNotBetween(String value1, String value2) {
            addCriterion("salesman_addr not between", value1, value2, "salesmanAddr");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}